#include <avr/io.h>
#include "i2c.h"
#include <util/delay.h>

int main(void){

	i2c_init();
	unsigned char tmp;
	DDRD = 0xff;
	PORTD = 0x00;
	DDRA = 0xff;
	PORTA = 0x00;
	unsigned char i=0;
	while(1){
	
		i2c_receive(0x01,0x01,&tmp);
		PORTA = tmp;
	}
	
	return 0;
}